package org.idea.spring.framework.http.component;

import org.idea.spring.framework.http.starter.SpringHttpClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author linhao
 * @Date created in 6:26 下午 2021/4/30
 */
@RestController
public class RunController {

    @Resource
    private SpringHttpClient springHttpClient;

    @GetMapping(value = "/test")
    public void test(){
        String html = springHttpClient.getHtml();
        System.out.println(html);
    }
}
